package com.sun.common.controller;

import org.springframework.stereotype.Controller;

import com.sun.user.domain.UserDO;
import com.sun.common.util.ShiroUtils;

@Controller
public class BaseController {
	public UserDO getUser() {
		return ShiroUtils.getUser();
	}

	public int getUserId() {
		return getUser().getUserId();
	}

	public String getUserName() {
		return getUser().getUserName();
	}
}